﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.SessionState;
using UIDevCore;
using CommonUtility.Utility;

namespace SmartUIBll
{
    public class PostHandle : PostHttpHandler
    {
        protected override object GetResponseData(PostData postData, FnCode fncode, ref string error)
        {
            return RunFuntion(postData, fncode, ref error); ;
        }

        public static object RunFuntion(PostData postData, FnCode fncode, ref string error)
        {
            switch (fncode.Module)
            {
                case "SmartUI":
                    return FnAdapter.RunFuntion(fncode.ClassName, postData, ref error);
                default:
                    return null;
            }
        }

    }
}
